package com.xbongbong.paas.elasticsearch.model;

import com.xbongbong.paas.enums.IndexTypeEnum;
import com.xbongbong.paas.toolbox.exception.XbbException;
import org.elasticsearch.index.query.BoolQueryBuilder;

import java.util.List;

/**
 * @author 吴峰
 * @date 2022/11/22 19:27
 */
public interface UserTeamEsModel {

   /**
    * 获取团队表的es信息
    * @param boolQueryBuilder
    * @param corpid
    * @param del
    * @param indexTypeEnum
    * @param tClass
    * @param <T>
    * @return
    * @throws XbbException
    */
   <T> List<T> getUserTeamList(BoolQueryBuilder boolQueryBuilder, String corpid, Integer del, IndexTypeEnum indexTypeEnum, Class<T> tClass) throws XbbException;
}
